package cn.openea.perpartner.timeline.web.service;

import cn.openea.perpartner.timeline.web.entity.ArcTicket;
import cn.openea.perpartner.timeline.web.entity.dto.SearchDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * (ArcTicket)表服务接口
 *
 * @author Weird077
 * @since 2022-12-11 22:16:28
 */
public interface ArcTicketService extends IService<ArcTicket> {
    /**
     * 我参与的工单
     * @param dto 用户id
     * @return
     */
    List<ArcTicket> selectAll(SearchDto dto);

    /**
     * 归档工单
     * @param ticketId
     * @return
     */
    boolean archival(String ticketId);

    /**
     * 我发布的工单
     * @param dto
     * @return
     */
    List<ArcTicket> selectCreatedList(SearchDto dto);
}

